home *** CD-ROM | disk | FTP | other *** search
/ MacTech 1 to 12 / MacTech-vol-1-12.toast / Source / MacTech® Magazine / Volume 09 - 1993 / 09.12 Dec 93 / Apple π / CAboutBoxDirector.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-11-06  |  955 b   |  31 lines  |  [TEXT/KAHL]

  1. /*
  2.      CAboutBoxDirector
  3.      Written and copyright by Malcolm H. Teas 1991-2. All rights reserved.
  4.  
  5.      Use this class to make an about box from a PICT.  Call IAboutBoxDirector() to
  6.      initialize the about box.  Then, call Flash() or About() to either flash the
  7.      box (as in a splash screen), or implement the usual about box.  Disposal is 
  8.      handled automatically as suicide when the box closes.
  9. */
  10.  
  11. #define    _H_CAboutBoxDirector        /* Include this file only once */
  12.  
  13. #include <CDirector.h>
  14. #include <CPane.h>
  15.  
  16.  
  17. class CAboutBoxDirector : public CDirector  {
  18.     private:
  19.         CPane        *itsDefaultPane;    //    The default picture pane.
  20.     
  21.     public:
  22.         void IAboutBoxDirector (CDirectorOwner *aSupervisor, short resourceID);
  23.         
  24.         void Flash (long ticks);        //     Flash the initialized about box for "ticks".
  25.         void About (void);                //     Show the initialized about box until key or mouse.
  26.     
  27.     private:
  28.         void Dispose (void);
  29.         void DoKeyDown (char c, Byte code, EventRecord *event);
  30. };
  31.